package com.sctvcloud.longchang.beans;

import com.jiongbull.jlog.JLog;

import java.io.Serializable;
import java.util.List;

/**
 * Created by rh008 on 2017/7/24.
 */

public class FUsers implements Serializable {
    private static final long serialVersionUID = 261901718080837050L;
    private String userId;
    private String avatar;
    private String nickName;
    private List<ThirdUser> openList;
    private String phoneNumber;
    private String token;
    private int userType;
    private DepartmentAndTownBean departmentAndTown;//**部门或**乡镇
    private boolean VIP;

    public boolean isVIP() {
        return VIP;
    }

    public void setVIP(boolean VIP) {
        this.VIP = VIP;
    }

    /**
     * 第三方的绑定类型,
     * 此字段只在登录时才能设置
     */
    private int bindType;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public List<ThirdUser> getOpenList() {
        return openList;
    }

    public void setOpenList(List<ThirdUser> openList) {
        this.openList = openList;
    }

    public String getUName() {
        return nickName;
    }

    public String getUIcon() {
        return avatar;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public int getBindType() {
        return bindType;
    }

    public void setBindType(int bindType) {
        this.bindType = bindType;
    }

    public DepartmentAndTownBean getDepartmentAndTown() {
        return departmentAndTown;
    }

    public void setDepartmentAndTown(DepartmentAndTownBean departmentAndTown) {
        this.departmentAndTown = departmentAndTown;
    }

    @Override
    public String toString() {

        String ss =  "FUsers@" +
                Integer.toHexString(hashCode()) +
                " {userId='" + userId + '\'' +
                ", avatar='" + avatar + '\'' +
                ", nickName='" + nickName + '\'' +
                ", openList=" + openList +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", token='" + token + '\'' +
                ", userType='" + userType + '\'' +
                ", bindType='" + bindType + '\'' +
                ", departmentAndTown='" + (null != departmentAndTown ? departmentAndTown.toString() : "") + '\'' +
                '}';
        JLog.e("FUserToString = "+ss);
        return  ss;
    }
}
